package com.nf.mapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class TestMapperImpl implements TestMapper {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public void 数据库操作1() {
        jdbcTemplate.update("insert into t1(id,name) values(16,'小明')");
    }

    @Override
    public void 数据库操作2() {
        jdbcTemplate.update("insert into t1(id,name) values(15,'小红')");
    }
}
